<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<jsp:include page="common/header.jsp">
    <jsp:param name="title" value="国际资讯 - 天天新闻网"/>
</jsp:include>

<!-- 页面主体内容 -->
<main class="container mt-4">
    <div class="row">
        <!-- 左侧新闻列表 -->
        <div class="col-md-8 shizheng_left">
            <img src="images/12.png" alt="" class="img-fluid mb-4 w-100"/>
            <ul class="list-unstyled news-list">
                <c:forEach items="${newsList}" var="news">
                    <li>
                        <a href="newsDetail?id=${news.new_id}" class="text-decoration-none text-dark">
                            ${news.title}
                        </a>
                    </li>
                </c:forEach>
            </ul>
        </div>

        <!-- 右侧新闻 -->
        <div class="col-md-4 shizheng_right">
            <!-- 图片部分 -->
            <img src="images/13.png" alt="" class="img-fluid w-100"/>
            <img src="images/14.png" alt="" class="img-fluid w-100"/>
            <img src="images/15.png" alt="" class="img-fluid w-100"/>
            <img src="images/16.png" alt="" class="img-fluid w-100"/>
            
            <!-- 文字新闻列表 -->
            <div class="text-news">
                <c:forEach items="${hotNews}" var="news">
                    <a href="newsDetail?id=${news.new_id}" class="text-decoration-none text-dark d-block">
                        ${news.title}
                    </a>
                </c:forEach>
            </div>
        </div>
    </div>
</main>

<jsp:include page="common/footer.jsp"/> 